#include "SipUAParameters.hpp"

namespace wtsip{

CSipUAParameters::CSipUAParameters(){
    //all parameters initial here
    TcpPort = -1;
    UdpPort = -1;
    interEPoll = 0;
    stackTpFlag = 0;
    ipVer = V4;
    StunState = StunDisabled;
    transport = "UDP";
}

CSipUAParameters::~CSipUAParameters(){
    //UperMap.clear();
    //DownerMap.clear();
}

CSipUAParameters& CSipUAParameters::operator=(const CSipUAParameters& rhs){
    TcpPort = rhs.TcpPort;
    UdpPort = rhs.UdpPort;
    interEPoll = rhs.interEPoll;
    stackTpFlag = rhs.stackTpFlag;
    ipVer = rhs.ipVer;
    mNameAddr = rhs.mNameAddr;
    StunState = rhs.StunState;
    transport = rhs.transport;

    return *this;
}


bool CSipUAParameters::setNameAddr(NameAddr& addr){
    mNameAddr = addr;
    TcpPort = addr.uri().port();
    UdpPort = addr.uri().port();
    return true;
}

//
//const int CSipUAParameters::getTcpPort(){
//    return TcpPort;
//}
//
//const int CSipUAParameters::getUdpPort(){
//    return UdpPort;
//}
//
//const int CSipUAParameters::getInterEPoll(){
//    return interEPoll;
//}
//
//const int CSipUAParameters::getStackTpFlag(){
//    return stackTpFlag;
//}
//
//const IpVersion& CSipUAParameters::getIpVersion(){
//    return ipVer;
//}
//
//const StunSetting& CSipUAParameters::getStunSetting(){
//    return StunState;
//}
//
//const NameAddr& CSipUAParameters::getNameAddr(){
//    return mNameAddr;
//}
//
//const Mime& CSipUAParameters::getMimeType(){
//    return MimeType;
//}


}

